# 缺省参数注意点
# 必须保证带有默认值的缺省参数在参数列表末尾
# 在调用带有多个缺省参数的函数时，需要指定参数名
def print_info(name,title="",gender=True):
    gender_text = "man"
    if not gender:
        gender_text = "woman"
    print("[%s] %s is %s" % (title,name,gender_text))

print_info("xiaoming")
# print_info("leo",False)
print_info("leo",gender=False)